<?php

 /*** error reporting on ***/
 error_reporting(E_ALL);

 /*** define the site path ***/
 $site_path = realpath(dirname(__FILE__));
 define ('__SITE_PATH', $site_path);

 // Starts the BootStrap
 require __SITE_PATH . '/app/library/bootstrap.php';

 // Load the Router
 $registry->router = new router($registry);

 // Sets the controller path
 $registry->router->setPath (__SITE_PATH . '/app/mvc/controller');

 // loads the template
 $registry->template = new template($registry);

 // loads the controller
 $registry->router->loader();

?>
